package com.cgt.xiaotao.gateway.config;

import com.cgt.xiaotao.gateway.util.AuthUtil;
import com.cgt.xiaotao.gateway.util.JwtSignerHolder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.StringRedisTemplate;

@Configuration
public class AuthUtilConfig {

    @Bean
    public AuthUtil authUtil(JwtSignerHolder jwtSignerHolder, StringRedisTemplate stringRedisTemplate) {
        return new AuthUtil(jwtSignerHolder, stringRedisTemplate);
    }
}
